//
//  ExcellentPlayModel.m
//  Courses
//
//  Created by YiXuePxh on 15/5/25.
//  Copyright (c) 2015年 boyibang. All rights reserved.
//

#import "ExcellentPlayModel.h"

@implementation ExcellentPlayModel
-(id)initWithJsonDitc:(id)jsonDict{
    if (self = [super init]) {
        self.picName = jsonDict[@"picName"];
        self.className = jsonDict[@"className"];
        self.watchCount = jsonDict[@"watchCount"];
        self.videoId = jsonDict[@"videoId"];
        self.teacher = jsonDict[@"teacher"];
        self.time = jsonDict[@"time"];
        self.courseIntro = jsonDict[@"courseIntro"];
    }
    return self;
}
+(ExcellentPlayModel* )getExcellentPlayModelByJson:(id)json{
    ExcellentPlayModel* model;
    if ([json isKindOfClass:[NSDictionary class]]) {
        model = [[ExcellentPlayModel alloc]initWithJsonDitc:json];
    }
    return model;
}
@end
